﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Game
/// </summary>
public class Game
{
    public enum State { PreGame, InGame, PostGame };
    public Nullable<int> ID { get; set; }
    public Nullable<DateTime> Date { get; set; }
    public Team AwayTeam { get; set; }
    public Team HomeTeam { get; set; }
    public int AwayScore { get; set; }
    public int HomeScore { get; set; }
    public State GameState { get; set; }
    public Week GameWeek { get; set; }
    public Nullable<int> WinningTeamID { get; set; }
    public Nullable<int> LosingTeamID { get; set; }
    public string AwayTeamRecord { get; set; }
    public string HomeTeamRecord { get; set; }
    public string GameDetail { get; set; }
    public bool HasSpread {get;set;}
    public Team HasPossession { get; set; }
    public List<UserPick> UsersPicks
    {
        get
        {
            return new List<UserPick>();
            //return DataBase.UserPicks.GetAllUserPicksForGame(this);
        }
    }
}